﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using EzFrameWork;

public partial class SocketClientPanel : MonoBehaviour
{
   //定义变量
  private List<InputField> listInputField = new List<InputField>();//用来管理InputFild的容器
  private InputField MessageInupt;
  private Text Placeholder;
  private Text Text;
  private Button SendBtn;
  private Text Text1;
  private Button LoginBtn;
  private Text Text2;
  private void Awake() {
  InitFunc();      //获取组件
  AddLisiners();//监听事件
  }

//初始化函数 用于获取UI组件等
  private void InitFunc() {
      MessageInupt = ToolUnity.FindGameObject(gameObject,"MessageInupt").GetComponent<InputField>();
      Placeholder = ToolUnity.FindGameObject(gameObject,"Placeholder").GetComponent<Text>();
      Text = ToolUnity.FindGameObject(gameObject,"Text").GetComponent<Text>();
      SendBtn = ToolUnity.FindGameObject(gameObject,"SendBtn").GetComponent<Button>();
      Text1 = ToolUnity.FindGameObject(gameObject,"Text1").GetComponent<Text>();
      LoginBtn = ToolUnity.FindGameObject(gameObject,"LoginBtn").GetComponent<Button>();
      Text2 = ToolUnity.FindGameObject(gameObject,"Text2").GetComponent<Text>();
  }
  //将模型层的数据同步到View层
  private void SetData() {
  }
}
